package com.serviceImpl;

import com.domain.Whour;
import com.dao.WhourDao;
import com.server.WhourService;
import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import java.util.List;

@Service("whourService")
public class WhourServiceImpl implements WhourService{

    @Resource(name="whourDao")
    private WhourDao whourDao;

    public Whour findWhourByEmployeeNumber(String number) {
        return whourDao.findWhourByEmployeeNumber(number);
    }

    @Override
    public List<Whour> showWhour() {
        return whourDao.showWhour();
    }

    @Override
    public List<Whour> findListWhourByEmployeeNumber(String number) {
        return whourDao.findListWhourByEmployeeNumber(number);
    }

    public Integer deleteWhourByTeamId(Integer team_id){
        return whourDao.deleteWhourByTeamId(team_id);
    }

    public Integer deleteWhourByEmpNumber(Integer team_id,String number){
        return whourDao.deleteWhourByEmpNumber(team_id,number);
    }

}
